package net.gdface.sdk.fse.thrift.client;

import com.facebook.swift.codec.*;
import com.facebook.swift.codec.ThriftField.Requiredness;
import java.util.*;

import static com.google.common.base.Objects.toStringHelper;

@ThriftStruct("CodeBean")
public final class CodeBean
{
    public CodeBean() {
    }

    private byte [] code;

    @ThriftField(value=1, name="code", requiredness=Requiredness.OPTIONAL)
    public byte [] getCode() { return code; }

    @ThriftField
    public void setCode(final byte [] code) { this.code = code; }

    private byte [] id;

    @ThriftField(value=2, name="id", requiredness=Requiredness.OPTIONAL)
    public byte [] getId() { return id; }

    @ThriftField
    public void setId(final byte [] id) { this.id = id; }

    private String imgMD5;

    @ThriftField(value=3, name="imgMD5", requiredness=Requiredness.OPTIONAL)
    public String getImgMD5() { return imgMD5; }

    @ThriftField
    public void setImgMD5(final String imgMD5) { this.imgMD5 = imgMD5; }

    private double similarity;

    @ThriftField(value=4, name="similarity", requiredness=Requiredness.REQUIRED)
    public double getSimilarity() { return similarity; }

    @ThriftField
    public void setSimilarity(final double similarity) { this.similarity = similarity; }

    @Override
    public String toString()
    {
        return toStringHelper(this)
            .add("code", code)
            .add("id", id)
            .add("imgMD5", imgMD5)
            .add("similarity", similarity)
            .toString();
    }
}
